MODULE_NAME=nms-service
rm -rf ./deploy
git clone git@gitee.com:D0302tingForever/deploy.git
chmod 755 ./deploy/*.sh
echo "构建编号：$BUILD_NUMBER  $WORKSPACE"
#清理超过10天的包
find $WORKSPACE/$MODULE_NAME/target  -mtime +10 -name "nms-service*" -exec rm -rf {} \;
mv $WORKSPACE/$MODULE_NAME/target/$MODULE_NAME-1.0.0.jar  $WORKSPACE/$MODULE_NAME/target/$MODULE_NAME-1.0.0-$BUILD_NUMBER.jar
./deploy/jenkins_deploy_v2.sh dev $MODULE_NAME false $WORKSPACE/$MODULE_NAME/target/$MODULE_NAME-1.0.0-$BUILD_NUMBER.jar  192.168.189.222 8083
